import request from '@/utils/request'

// 查询医馆分红列表
export function listYiguanRecord(query) {
  return request({
    url: '/admin/yiguanRecord/list',
    method: 'get',
    params: query
  })
}

// 查询医馆分红详细
export function getYiguanRecord(id) {
  return request({
    url: '/admin/yiguanRecord/' + id,
    method: 'get'
  })
}

// 新增医馆分红
export function addYiguanRecord(data) {
  return request({
    url: '/admin/yiguanRecord',
    method: 'post',
    data: data
  })
}

// 修改医馆分红
export function updateYiguanRecord(data) {
  return request({
    url: '/admin/yiguanRecord',
    method: 'put',
    data: data
  })
}

// 删除医馆分红
export function delYiguanRecord(id) {
  return request({
    url: '/admin/yiguanRecord/' + id,
    method: 'delete'
  })
}
